package com.xiaolin.admin.utils.excel.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.VerticalAlignment;

/**
 * @author xiaolin
 * @description 描述
 * @since 2024/8/28
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExcelCellStyle {
    // 自定义样式
    private int fontSize;  // 字体大小
    private int color;  // 字体颜色
    private int backgroundColor;  // 背景颜色
    private boolean bold; // 字体加粗
    // 统一样式
    @Builder.Default
    private String fontName = "宋体"; // 字体大小
    @Builder.Default
    private HorizontalAlignment alignment = HorizontalAlignment.CENTER;  // 水平布局
    @Builder.Default
    private VerticalAlignment verticalAlignment = VerticalAlignment.CENTER;  // 居中布局
}
